// JavaScript source code

function rgExpandAllRows() {
    this.classList.toggle("glyphicon-minus");
    var grid = this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
    var rgData = grid.getElementsByClassName("rgDataDiv")[0];
    if (this.classList.contains("glyphicon-minus")) {
        //Expand all
        var lst = rgData.getElementsByClassName("glyphicon-plus");
        for (i = 0; i < lst.length; i++) {
            lst[i].classList.add("glyphicon-minus");
        }
        var lst = rgData.getElementsByClassName("rgColDetail");
        for (i = 0; i < lst.length; i++) {
            lst[i].classList.add("rgColVisible");
        }
    }
    else {
        //Collapse all
        var lst = rgData.getElementsByClassName("glyphicon-plus");
        for (i = 0; i < lst.length; i++) {
            lst[i].classList.remove("glyphicon-minus");
        }
        var lst = rgData.getElementsByClassName("rgColDetail");
        for (i = 0; i < lst.length; i++) {
            lst[i].classList.remove("rgColVisible");
        }
    }
}
function rgExpandRow() {
    this.classList.toggle("glyphicon-minus"); //
    var lst = this.parentNode.parentNode.getElementsByClassName("rgColDetail");
    for (i = 0; i < lst.length; i++) {
        lst[i].classList.toggle("rgColVisible");
    }
}